package cn.tedu._04mybatis.pojo.entity;

import org.springframework.stereotype.Component;

@Component
public class WeiBo {
    private Long id;
    private String content;
    private String created;
    private Integer userId;

    public WeiBo() {
    }

    public WeiBo(Long id, String content, String created, Integer userId) {
        this.id = id;
        this.content = content;
        this.created = created;
        this.userId = userId;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public String getCreated() {
        return created;
    }

    public void setCreated(String created) {
        this.created = created;
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    @Override
    public String toString() {
        return "WeiBo{" +
                "id=" + id +
                ", content='" + content + '\'' +
                ", created='" + created + '\'' +
                ", userId=" + userId +
                '}';
    }
}
